<template>
	<view
		:style="{'margin-top':`${statusBarHeight}px`,'height':`${height}px`,'width':'100vw','display':'flex','justifyContent':'center','align-items':'center'}">
		医生端
	</view>
</template>

<script>
	export default {
		name: "header",
		data() {
			return {
				statusBarHeight: '',
				height: ''
			};
		},
		
		created() {
			let pay = uni.getSystemInfoSync()
			// console.log(uni.getSystemInfoSync(), '123');
			this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
			let into = uni.getMenuButtonBoundingClientRect()
			// console.log(into);

			let height = (into.top - pay.statusBarHeight) * 2 + into.height
			console.log(height);
			this.height = height
			console.log(this.height, this.statusBarHeight, '1');
		}
	}
</script>

<style>

</style>